<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>用户管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
</script>
</head>
<body>
	<ul class="nav nav-tabs">

		<li class="active"><shiro:hasPermission name="oa:oaFile:edit"><a href="${ctx}/oa/fileNum/form">编号生成</a></shiro:hasPermission></li>
		<li><shiro:hasPermission name="oa:oaFile:view"><a href="${ctx}/oa/fileNum/list">编号列表</a></shiro:hasPermission></li>
	</ul>
	
	<br />
	<form:form id="inputForm" modelAttribute="user"
		action="${ctx}/oa/fileNum/save" method="post" class="form-horizontal">
		<div class="control-group">
			<label class="control-label"> </label> <select name="deptCode"
				id="deptCode" style="width:200px;">
				<option value="">---请选择部门代码---</option>
				<option value="MT">业务拓展部</option>
				<option value="RD">市场技术研发部</option>
				<option value="PM">项目管理</option>
				<option value="HR">行政人事</option>
				<option value="FD">财务部</option>
				<option value="QC">质量部</option>
			</select> <select name="fileType" id="fileType" style="width:200px;">
				<option value="">---请选择文件类型---</option>
				<option value="M">一级文件</option>
				<option value="E">ISO14001二级文件</option>
				<option value="H">ISO14001三级文件</option>
				<option value="J">ISO14001四级文件</option>
				<option value="P">ISO9001二级文件</option>
				<option value="Z">ISO9001三级文件</option>
				<option value="S">ISO9001四级文件</option>
			</select>
			<button type="button" class="btn" data-toggle="collapse"
				data-target="#demo">更多操作</button>
		</div>
		<div id="demo" class="collapse">
			<div class="control-group">
				<label class="control-label">项目名称（选填）:</label>
				<div class="controls">
					<input type="text" id="projectName" name="projectName" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">网盘地址（选填）:</label>
				<div class="controls">
					<input type="text" id="networkDiskUrl" name="networkDiskUrl" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">备注（选填）:</label>
				<div class="controls">
					<textarea name="remarks" cols="30" rows="4"> 
    			</textarea>
				</div>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="oa:oaFile:edit">
				<input id="btnSubmit" class="btn btn-primary" type="submit"
					value="生成编号" />&nbsp;</shiro:hasPermission>
			
			<input id="btnCancel" class="btn" type="button" value="返 回"
				onclick="history.go(-1)" />

			<h2>${massage}</h2>
			<h2 id="code">${code.oaFileCode}</h2>
		</div>
	</form:form>
</body>
</html>